package com.yby6.system.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.yby6.system.mapper.AttachmentMapper;
import com.yby6.system.domain.Attachment;
import com.yby6.system.service.AttachmentService;

/**
 * ClassName: Loginfo
 * Description: 杨不易网站 :www.yangbuyi.top
 * date: 2021/5/16
 *
 * @author TeouBle
 * @author Yang Shuai
 * @since JDK 1.8
 **/

@Service
public class AttachmentServiceImpl implements AttachmentService {

	@Resource
	private AttachmentMapper attachmentMapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		return attachmentMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Attachment record) {
		return attachmentMapper.insert(record);
	}

	@Override
	public Attachment selectByPrimaryKey(Long id) {
		return attachmentMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKey(Attachment record) {
		return attachmentMapper.updateByPrimaryKey(record);
	}

}

